package programs;

import global.SystemDefs;
import heap.InvalidSlotNumberException;

import java.io.IOException;

import diskmgr.PCounter;

import bitmap.*;

public class printBitMap {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		// read an existing DB into BufferManager
		SystemDefs sysdef = new SystemDefs(args[0], 0, 50, "Clock");
		
		try{
		BitMapFile bmf=new BitMapFile(args[1]);
			BM.printBitMap(bmf.getHeaderPage());
		} catch (Exception e) {
			//System.out.println("BitMapFile does not exist, please create it first.");
		}
		
		PCounter.print();
        Runtime.getRuntime().exit(0);
	}

}
